package com.tpp.dao;

import com.tpp.pojo.Comment;
import com.tpp.pojo.CommentReply;
import com.tpp.pojo.TppComments;
import com.tpp.pojo.baseVo.CommentBase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentsDao {

    int addComment(Comment comment);

    int deleteComment(@Param("id") Integer id);

    List<CommentBase> findAllComment(@Param("mid") Integer mid);

    int addCommentsReply(CommentReply commentReply);

    Integer findComment(@Param("cid") Integer cid);

    Integer findCommentReplyById(Integer uid);

    Integer deleteCommentReply(Integer id);
}
